package code.consts
{
	import flash.utils.describeType;

	public class ConfigConst
	{
		public function ConfigConst()
		{
		}
		
		
		public static function get configList():Array
		{
			var $xml:XML = describeType(ConfigConst);
			var $const:XMLList = $xml.constant;
			var $list:Array = [];
			for each (var item:XML in $const) 
			{
				var $name:String = item.@name;
				var $configStr:String = ConfigConst[$name];
				if($configStr)
				{
					$list.push($configStr);
				}
			}
			return $list;
		}
		public static const BUILDING:String = "building";
		public static const COLLECTION:String = "collection";
		public static const FLOOR:String = "floor";
		public static const DECORATION:String = "decoration";
		public static const ARMS:String = "arms";
		public static const HERO:String = "hero";
		public static const COMMODITY:String = "commodity";
		public static const BUILDINGLEVEL:String = "buildingLevel";
		public static const ORDER:String = "order";
		public static const RESOURCELIMIT:String = "resourceLimit";
		public static const PRESTIGE:String = "prestige";
		public static const PROSPERITY:String = "prosperity";		
		public static const TROOP:String = "troop";
		public static const SKILLLIST:String = "skill";
	}
}